﻿using System.Drawing;
using System.IO;
using PlanningGIS.Framework;
using ESRI.ArcGIS.ADF.BaseClasses;
using PlanningGIS.CoordCovert.form;

namespace PlanningGIS.CoordCovert.button
{
   
    internal class btnVectorProject : BaseCommand
    {
        /// <summary>
        /// 
        /// </summary>
        IApplication m_Application = null;

        /// <summary>
        /// 
        /// </summary>
        public btnVectorProject()
        {
            base.m_caption = "矢量数据投影";
            base.m_toolTip = base.m_caption;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="hook"></param>
        public override void OnCreate(object hook)
        {
            m_Application = hook as IApplication;
        }

        /// <summary>
        /// 
        /// </summary>
        public override bool Enabled
        {
            get
            {
                return (m_Application as IFramework).IsMapCtrlactive;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public override void OnClick()
        {
            FrmVectorProject frm = new FrmVectorProject();
            frm.Show((m_Application as IFramework).MdiForm);
            
        }
        
    }
}